﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Player
    {
        private string name;

        public Player(string name)
        {
            this.name = name;
        }

        public string Name { get => name; set => name = value; }
        public int Really()
        {

                Console.WriteLine("请出拳：1.剪刀，2.石头，3.布（输入相应的数字）");
                int num1 = int.Parse(Console.ReadLine());
                switch (num1)
                {
                    case 1:
                        Console.WriteLine("{0}:出拳：剪刀", name);
                        break;
                    case 2:
                        Console.WriteLine("{0}:出拳：石头", name);
                        break;
                    case 3:
                        Console.WriteLine("{0}:出拳：布", name);
                        break;
                }           
            return num1;
        }
    }
}
